Moves and displacements of particular elements in Quicksort
نویسندگان
چکیده
In this research note we investigate the number of moves and the displacement of particular elements during the execution of the well-known quicksort algorithm. This type of analysis is useful if the costs of data moves were dependent on the source and target locations, and possibly the moved element itself. From the mathematical point of view, the analysis of these quantities turns out to be related to the analysis of quickselect, a selection algorithm which is a variant of quicksort that finds the i-th smallest element of n given elements, without sorting them. Our results constitute thus a novel application of M. Kuba’s machinery [M. Kuba, On quickselect, partial sorting and multiple quickselect, Inform. Process. Lett. 99(5) (2006) 181–186] for the solution of general quickselect recurrences. © 2009 Elsevier B.V. All rights reserved.
منابع مشابه
Thematization Strategies in the Generic Moves of Research Article Introductions
Despite the heterogeneity of ideas regarding the definitions of genre, there are also common instances shared among scholars interested in particular aspects of the notion. Swales (1990) and Bhatia (1993) are primarily interested in the sociological and psychological aspects of genre's functioning and construction, respectively.. Swales analyzes the genre of 'article introduction', into four ge...
متن کاملFast Exchange Sorts 1
We present three variations of the following new sorting theme: Throughout the sort, the array is maintained in piles of sorted elements. At each step, the piles are split into two parts, so that the elements of the left piles are smaller than (or equal to) the elements of the right piles. Then, the two parts are each sorted, recursively. The theme, then, is a combination of Hoare's Quicksort i...
متن کاملThe Relationship between Rhetorical moves and Lexical Cohesion Patterns; the case of Introduction and Discussion sections of Local and International Research Articles
Communicative moves and lexical cohesion patterns (LCPs), as mounting evidence shows, are two important indicators in writing and publishing the RAs. However, the interaction between these two crucial elements and the contribution of this interaction to the failure or success of the RAs have not been given due attention to date. Having this in mind and based on a sound theoretical framework, at...
متن کاملQuicksort and Randomized Incremental Constructions
This is Section 5.4 in Mehlhorn/Sanders [DMS14, MS08] Quicksort is a divide-and-conquer algorithm. Let S be the set to be sorted. We select a uniformly random element p from S and split S into three parts. The set S< of elements smaller than p, the set S= of elements equal to p and the set S> of elements larger than p. The element p is usually called the pivot. Then we apply the algorithm recur...
متن کاملA Boundary Elements and Particular Integrals Implementation for Thermoelastic Stress Analysis
A formulation and an implementation of two-dimensional Boundary Element Method (BEM) analysis for steady state, uncoupled thermoelastic problems is presented. This approach differs from other treatments of thermal loads in BEM analysis in which the domain integrals due to the thermal gradients are to be incorporated in the analysis via particular-integrals. Thus unlike Finite Elements or Field ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Theor. Comput. Sci.
دوره 410 شماره
صفحات -
تاریخ انتشار 2009